import request from '@/utils/request'

// 创建回收点配置
export function createRecycleConfig(data) {
  return request({
    url: '/pekingFish/recycle-config',
    method: 'post',
    data: data
  })
}

// 更新回收点配置
export function updateRecycleConfig(data) {
  return request({
    url: '/pekingFish/recycle-config',
    method: 'put',
    data: data
  })
}

// 获得回收点配置分页
export function getRecycleConfigPage(query) {
  return request({
    url: '/pekingFish/recycle-config/pageRecycleConfigs',
    method: 'get',
    params: query
  })
}

// 导出回收点配置 Excel
export function exportRecycleConfigExcel(query) {
  return request({
    url: '/app/recycle-config/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
